package com.xiaohong.movie.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

@Schema(name = "Movie")
public class Movie implements Serializable{

    @TableId(value = "id",type = IdType.AUTO)
    @Schema(description = "",accessMode = READ_ONLY)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
	private Integer id;//

    @Schema(description = "视频地址")
    @TableField("url")
	private String url;//视频地址

    @Schema(description = "视频封面")
    @TableField("poster")
	private String poster;//视频封面

    @Schema(description = "视频标题")
    @TableField("title")
	private String title;//视频标题

    @Schema(description = "弹幕列表")
    @TableField("danmuList")
	private String danmuList;//弹幕列表



	//get方法
	public Integer getId() {
		return id;
	}

	//set方法
	public void setId(Integer id) {
		this.id = id;
	}
	//get方法
	public String getUrl() {
		return url;
	}

	//set方法
	public void setUrl(String url) {
		this.url = url;
	}
	//get方法
	public String getPoster() {
		return poster;
	}

	//set方法
	public void setPoster(String poster) {
		this.poster = poster;
	}
	//get方法
	public String getTitle() {
		return title;
	}

	//set方法
	public void setTitle(String title) {
		this.title = title;
	}
	//get方法
	public String getDanmuList() {
		return danmuList;
	}

	//set方法
	public void setDanmuList(String danmuList) {
		this.danmuList = danmuList;
	}


}
